package com.twq;

/**
 * Created by tangweiqun on 2017/12/2.
 */
public class IfTest {

    public static void main(String[] args) {
        String temp = null;
        if (args.length > 0) {
            temp = args[0];
        } else {
            temp = "default";
        }

        temp = args.length > 0 ? args[0] : "default";

        System.out.println(args.length > 0 ? args[0] : "default");
    }
}
